/**
 * 2011-3-27上午11:37:07BeanNameGenImpl.java
 * @author 刘杰 
 */
package com.lyjilu.util;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanNameGenerator;

/**
 * @author Administrator
 *
 */
public class BeanNameGenImpl implements BeanNameGenerator {

	/**
	 * 
	 */
	public BeanNameGenImpl() {
	}
	/* (non-Javadoc)
	 * @see org.springframework.beans.factory.support.BeanNameGenerator#generateBeanName(org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.BeanDefinitionRegistry)
	 */
	@Override
	public String generateBeanName(BeanDefinition beanD,
			BeanDefinitionRegistry beanDR) {
		String a = beanD.getFactoryBeanName();
		String b = beanD.getFactoryMethodName();
		System.out.println(a+"||||"+b);
		return null;
	}

}
